// 引入 configureStore 配置仓库
import { configureStore } from "@reduxjs/toolkit";

// 引入 counterReducer
import counterReducer from "./features/counterSlice";
// 引入 todosReducer
import todosReducer from "./features/todosSlice";

// 配置仓库
const store = configureStore({
  reducer: {
    counter: counterReducer,
    todos: todosReducer,
  },
});

// 导出这个store
export default store;
